//
//  ImageADScrollView.h
//  testScrollViewViewController
//
//  Created by 陈区 on 13-12-11.
//  Copyright (c) 2013年 陈区 . All rights reserved.
//

#import <UIKit/UIKit.h>

@class ImageADScrollView;

@protocol ImageADScrollViewDelegate <NSObject>

@required

- (NSInteger)numberOfImagesInImageADScrollView:(ImageADScrollView *)aImageADScrollView;

- (UIView *)imageADScrollView:(ImageADScrollView *)aImageADScrollView atIndex:(NSInteger)aIndex;

@optional

- (void)imageADScrollView:(ImageADScrollView *)aImageADScrollView didSelectedIndex:(NSInteger)aIndex;

@end

@interface ImageADScrollView : UIView<UIScrollViewDelegate>
{
    UIScrollView *m_scrollView;
    UIPageControl *m_pageControl;
    NSTimer *m_timer;
    NSMutableArray *m_slideImages;
//    id<ImageADScrollViewDelegate> delegate;
    NSInteger m_imageCount;
}

@property (nonatomic ,assign)id<ImageADScrollViewDelegate> delegate;

- (void)reloadData;

@end
